<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body style="font-family: 微软雅黑;	font-size: 10.5pt;">
	<form id="importForm"
		action="../common.do?method=excelImport"
		enctype="multipart/form-data" method="post" style="padding-top: 30px;padding-left: 10px;">
		请选择您要上传的EXCEL文件（扩展名为.xls）:<br/><div style="padding-top: 5px;"><input name="file" type="file" style="width: 300px;font-family: 微软雅黑;	font-size: 10.5pt;" /><input type="button"
			value="上传" onclick="showLoding()" style="font-family: 微软雅黑;	font-size: 9.5pt;" /></div>
		<br/><br/>注意：新版OA数据变动需要服务器验证，所以导入耗时比老版本OA久，请耐心等待。
	</form>
</body>
<script type="text/javascript">
function showLoding() {
	var name = document.getElementsByName("file")[0].value;

	var type = name.substring(name.lastIndexOf('.') + 1, name.length);

	if (type != "xls") {
		alert("上传的文件扩展名必须为.xls");
		return;
	}

	window.parent.document.getElementById("lodingDiv").style.height = "200px";
	window.parent.document.getElementById("lodingDiv").style.display = '';

	document.getElementById("importForm").submit();
}
</script>
</html>
